﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Warehouse.Domain.DTO
{
    public class ADDInventoryDTO
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int InventoryId { get; set; }
        /// <summary>
        /// 盘点单号
        /// </summary>
        public string? InventoryCode { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? MorderNumber { get; set; }
        /// <summary>
        ///制单人 
        /// </summary>
        public string? MakePerson { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? MarkTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? IRremark { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? InventoryState { get; set; }
        /// <summary>
        /// 盘点类型
        /// </summary>
        public string? InventoryType { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
        public List<AddInventGuanLianDTO> AddInventGuan { get; set; }//盘点关联产品
    }
    public class AddInventGuanLianDTO
    {
        /// <summary>
        /// 盘点产品关联ID
        /// </summary>
        public int InventProductIdId { get; set; }
        /// <summary>
        /// 盘点主键
        /// </summary>
        public int InventoryId { get; set; }
        /// <summary>
        /// 产品ID
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 盘点数
        /// </summary>
        public int? InventoryNumber { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Number { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? ProductName { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        public string? ProductCode { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? Specifications { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }
        /// <summary>
        /// 库位
        /// </summary>
        public string? WarehouseLocation { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
    }


}
